<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http：//www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/form.dwt" codeOutsideHTMLIsLocked="true" -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<script type="text/javascript" src="${ctx}/scripts/datepicker/wpCalendar.js"></script>
<!-- InstanceBeginEditable name="doctitle" -->
<title>站内信</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="scripts" -->
<script type="text/javascript">
	function submitIt(obj){
		if(!validateStringNull("收件人", "receiveUserId")){
		   return false;
		}
		if(!validateStringNull("标　　题", "theme")){
		   return false;
		}
		submit(document.form1, obj);
	}
</script>

<!-- InstanceEndEditable -->
</head>

<body>

<div id="main">
	<div class="zdsz" id="select1">
		<div class="tab">

<!-- InstanceBeginEditable name="tab" -->
<a href="${ctx}/message/message!index.action"><h3 class="sel" >发送站内信</h3></a>
<a href="${ctx}/message/message!receive.action"><h3>收件箱</h3></a>
<a href="${ctx}/message/message!send.action"><h3>发件箱</h3></a>
<!-- InstanceEndEditable -->
		</div>
		<div class="zd_gut">
			<ul class="block">
				<li>
		
<!-- InstanceBeginEditable name="form" -->

<form name="form1" action="${ctx}/message/message!create.action" method="post"  enctype="multipart/form-data">
<table width="97%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> 
  <tr>
    <td height="30"  width="3%" align="right" bgcolor="#DFEAF3">收件人：</td>
    <td width="11%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
    	<input type="hidden" id="receiveUserId" name="message.receiveUserId"/>
        <input type="text" id="receiveUserName" name="message.receiveUserName" size="60" readOnly/>
        <input type="button" onclick="chooseUser('${ctx}/user/user!chooseUser.action', 'receiveUserId','receiveUserName');" value="+添加" class="log_f">
     	<input type="button" onclick="deleteChoose('receiveUserId','receiveUserName');" value="-清空" class="log_f">
    </td>
  </tr>
  <tr>
    <td height="30"  width="3%" align="right" bgcolor="#DFEAF3">标　　题：</td>
    <td width="11%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="theme" name="message.theme"  type="text" size="60" maxlength="50" />
    </td>
  </tr>
  <tr>
    <td height="30"   align="right" bgcolor="#DFEAF3">内　　容：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
    <textarea id="content" name="message.content" cols="150" rows="15" onpropertychange="if(value.length>500) value=value.substr(0,500)">${message.content}</textarea></td>
    </td>    
  </tr>
  <tr>
    <td height="30"   align="right" bgcolor="#DFEAF3">上传附件：</td>
    <td height="30"   align="left" bgcolor="#FFFFFF" class="tblz5">
    <input id="annex"  name="annex" type="file" class="multi" maxlength="10"  ContentEditable="false"/></td>
  </tr>
</table>

<!-- InstanceEndEditable -->
<font color="red"><div id="ERROR">${ERROR }</div></font>
<table  width="100" height="50" border="0" align="center" cellpadding="0" cellspacing="1" >
    <tr>
<!-- InstanceBeginEditable name="button" -->
      <td width="150" align="right"><input type="button"  onclick="submitIt(this);"  value="提交" class="btn"/></td>
      <td width="100" align="right"><input type="reset" value="重置" class="btn"/></td>
<!-- InstanceEndEditable --> 
	</tr>
</table>
</from>
</li>
		</ul>
	  </div>
	</div>
</div>
</body>
<!-- InstanceEnd --></html>
